<template>
	<view>
		 <web-view :src="officeUrl"></web-view>
	</view>
</template>

<script>
	export default {
	  data() {
	    return {
	      officeUrl: ''
	    }
	  },
	  onLoad(options) {
	    if (options.fileUrl) {
	      // 使用微软Office Online预览
	      this.officeUrl = `https://view.officeapps.live.com/op/view.aspx?src=${encodeURIComponent(options.fileUrl)}`
	    }
	  }
	}
</script>

<style>

</style>
